package jgl.vajra.kingkong.widget.retrofithelper.converter;

import com.google.gson.Gson;
import com.google.gson.TypeAdapter;

import okhttp3.MediaType;
import okhttp3.RequestBody;
import retrofit2.Converter;

public class SecurityConverter <T> implements Converter<T, RequestBody> {

    private static final MediaType MEDIA_TYPE = MediaType.parse("application/json; charset=UTF-8");
    private final Gson gson;
    private final TypeAdapter<T> adapter;

    /**
     * 构造器
     */

    public SecurityConverter(Gson gson, TypeAdapter<T> adapter) {
        this.gson = gson;
        this.adapter = adapter;
    }


    @Override
    public RequestBody convert(T value)  {

       // RequestBody body =RequestBody.create()

        return null;
    }

}
